import 'package:get/get.dart';
import '../../pages/index.dart';
import 'names.dart';
import 'middlewares/auth_middleware.dart';

class RoutePages {
  // 列表
  static List<GetPage> list = [
    
      GetPage(
        name: RouteNames.msgMsgDetial,
        page: () => const MsgDetialPage(),
        middlewares: [AuthMiddleware()], // 需要登录
      ),
      GetPage(
        name: RouteNames.msgMsgIndex,
        page: () => const MsgIndexPage(),
        middlewares: [AuthMiddleware()], // 需要登录
      ),
      GetPage(
        name: RouteNames.myMyAddress,
        page: () => const MyAddressPage(),
        middlewares: [AuthMiddleware()], // 需要登录
      ),
      GetPage(
        name: RouteNames.myMyIndex,
        page: () => const MyIndexPage(),
        middlewares: [AuthMiddleware()], // 需要登录
      ),
      GetPage(
        name: RouteNames.myPeofileDetial,
        page: () => const PeofileDetialPage(),
        middlewares: [AuthMiddleware()], // 需要登录
      ),
      GetPage(
        name: RouteNames.myProfileEdit,
        page: () => const ProfileEditPage(),
        middlewares: [AuthMiddleware()], // 需要登录
      ),
      GetPage(
        name: RouteNames.orderOrderDetial,
        page: () => const OrderDetialPage(),
        middlewares: [AuthMiddleware()], // 需要登录
      ),
      GetPage(
        name: RouteNames.orderOrderIndex,
        page: () => const OrderIndexPage(),
        middlewares: [AuthMiddleware()], // 需要登录
      ),
      GetPage(
        name: RouteNames.orderPayments,
        page: () => const PaymentsPage(),
        middlewares: [AuthMiddleware()], // 需要登录
      ),
      GetPage(
        name: RouteNames.rentalDeviceDetial,
        page: () => const DeviceDetialPage(),
      ),
      GetPage(
        name: RouteNames.rentalDeviceIndex,
        page: () => const DeviceIndexPage(),
      ),
      GetPage(
        name: RouteNames.systemLogin,
        page: () => const LoginPage(),
      ),
      GetPage(
        name: RouteNames.systemMain,
        page: () => const MainPage(),
        binding: MainBinding(),
      ),
      GetPage(
        name: RouteNames.systemRegist,
        page: () => const RegistPage(),
      ),
  ];
}
